﻿using System;
using ProjScan.Tools;
using UnityEngine;
using UnityEngine.UI;

namespace ProjScan.RecordManager.AssetData
{
	// Token: 0x0200029A RID: 666
	internal class ImageAssetData : ComponentAssetData<Image>
	{
		// Token: 0x06001167 RID: 4455 RVA: 0x0005208C File Offset: 0x0005028C
		public ImageAssetData(int assetId, Image targetImage, string assetPath) : base(assetId, assetPath, targetImage)
		{
			this.cullTransparentMesh = false;
			CanvasRenderer component = targetImage.GetComponent<CanvasRenderer>();
			bool flag = component != null;
			if (flag)
			{
				object propertyValue = AssemblyTools.I.GetPropertyValue(component, "CullTransparentMesh");
				bool flag2 = propertyValue != null;
				if (flag2)
				{
					this.cullTransparentMesh = (bool)propertyValue;
				}
			}
			this.imageType = targetImage.type;
			this.imageColor = targetImage.color;
		}

		// Token: 0x04000A22 RID: 2594
		public Image.Type imageType;

		// Token: 0x04000A23 RID: 2595
		public Color imageColor;

		// Token: 0x04000A24 RID: 2596
		public bool cullTransparentMesh;
	}
}
